package com.common.models;

public class RetCode {
		
	//返回码定义，0为成功码，非0为错误码
	public static final int SUCCESS = 0;//成功
	public static final String SUCCESS_MSG = "成功";
	
	public static final int ERROR = 1;//失败
	public static final String ERROR_MSG = "失败";
	
	
	public static final int KAPCHA_ERR = -1001;
	public static final String KAPCHA_ERR_MSG = "验证码错误";
	
	public static final int LOGIN_TIME_OUT = -1002;//登录超时
	public static final String LOGIN_TIME_OUT_MSG = "登录超时";
	
	public static final int NEED_RELOGIN= -1003;
	public static final String NEED_RELOGIN_MSG = "请重新登录";
	
	public static final int PARAM_ERR = -2001;//参数错误
	public static final String PARAM_ERR_MSG = "参数错误";
	
	public static final int SERVER_ERR = -2002;//服务器内部错误
	public static final String SERVER_ERR_MSG = "服务器内部错误";
	
	
	public static final int AUTHORITY_FAIL= -3001;	//鉴权失败
	public static final String AUTHORITY_FAIL_MSG = "权限不足";
	
	public static final int TIMESTAMP_ERROR = -3002;	//时间戳有误
	public static final String TIMESTAMP_ERROR_MSG =	"无效的时间戳";
	
	public static final int TOKEN_ERROR = -3003;		//顾客app token令牌错误
	public static final String TOKEN_ERROR_MSG =	"请重新登录";
	
	public static final int ORDER_CREATE_FAIL = -4001;	//下单失败
	public static final String ORDER_CREATE_FAIL_MSG = "下单失败";
	
	
	
	public static final int USER_IS_EXIST = -5002;	//该用户已存在
	public static final String USER_IS_EXIST_MSG = "该用户已存在";
	
	//自用参数
	public static final int DEFAULT_PAGE_SIZE = 10;
}
